package com.zyb.lmbackend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.experimental.Accessors;

/** LLM 调用审计实体：记录调用入参/出参摘要、耗时与状态码。 */
@Data
@Accessors(chain = true)
@TableName("llm_call_audit")
public class LlmCallAudit {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Long taskId;
    private Integer batchNo;
    private String direction;
    private String payload;
    private Integer tokens;
    private Integer latencyMs;
    private Integer httpStatus;
    private LocalDateTime createdAt;
}
